/*============================================================================
 PROJECT: DealHits
 FILE:    PhotoGalleryViewController.h
 AUTHOR:  Khoai Nguyen Minh
 DATE:    9/19/13
 =============================================================================*/

/*============================================================================
 IMPORT
 =============================================================================*/
#import "BaseViewController.h"

/*============================================================================
 MACRO
 =============================================================================*/
/*============================================================================
 PROTOCOL
 =============================================================================*/
@class PhotoGalleryViewController, FileRequest;
@protocol PhotoGalleryViewControllerDelegate <NSObject>
- (NSInteger)numberOfPhotosInGallery:(PhotoGalleryViewController *)gallery;
- (FileRequest *)gallery:(PhotoGalleryViewController *)gallery photoAtIndex:(NSInteger)index;
@optional
- (void)gallery:(PhotoGalleryViewController *)gallery textForTitleLabel:(UILabel *)label;
- (void)didAddedPhotoIntoUploadQueue:(PhotoGalleryViewController *)gallery;
- (void)didUploadedPhotoInGallery:(PhotoGalleryViewController *)gallery;
- (void)gallery:(PhotoGalleryViewController *)gallery removePhotoAtIndex:(NSInteger)index;
- (void)gallery:(PhotoGalleryViewController *)gallery selectedPhotoAtIndex:(NSInteger)index;
@end

/*============================================================================
 Interface:   PhotoGalleryViewController
 =============================================================================*/

@interface PhotoGalleryViewController : BaseViewController
@property (strong, nonatomic) NSString *parentId;
@property (strong, nonatomic) NSMutableIndexSet *selectedIndexes;
@property (assign, nonatomic) BOOL editing;
@property (weak, nonatomic) id<PhotoGalleryViewControllerDelegate> delegate;

- (void)reloadData;
- (void)updateSelectedIndexes:(NSIndexSet *)selectedIndexes;
@end
